<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript" charset="utf-8" src="ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="ueditor/ueditor.all.min.js"> </script>
</head>
<body>
	<form action="?a=doadd" method="post">
		<table border="1" width="100%">
			<tr>
				<th style="width:100px;">标题</th>
				<td>
					<input type="text" name="title">
				</td>
			</tr>
			<tr>
				<th>栏目</th>
				<td>
					<select name="cid" id="">
					<?php foreach ($categorys as $key => $value): ?>
						<option value="<?php echo $value['id'];?>">
							<?php echo $value['_cname'];?>
						</option>
					<?php endforeach ?>
						
					</select>
				</td>
			</tr>
			<tr>
				<th>正文</th>
				<td>
				<script id="editor" name="content" type="text/plain" style="width:1024px;height:500px;"></script>
				<script>
					 var ue = UE.getEditor('editor');
				</script>	
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit"></td>
			</tr>
		</table>
	</form>
</body>
</html>